package com.example.text.ui.login.repository

import com.example.text.http.ClubService
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.flow
import kotlinx.coroutines.flow.flowOn
import javax.inject.Inject

class LoginRepository @Inject constructor(private val clubService: ClubService) {
    fun getGoodsInfo() = flow {
        emit(clubService.getGoodsInfo())
    }.flowOn(Dispatchers.IO)
}